package com.qf.thread.pool;

import java.util.concurrent.*;

public class ShopThreadPool {

    public static ThreadPoolExecutor executors() {
        return new ThreadPoolExecutor(
                5,
                20,
                2000,
                TimeUnit.SECONDS,
                new LinkedBlockingQueue<Runnable>(10000),
                Executors.defaultThreadFactory(),
                new ThreadPoolExecutor.AbortPolicy());
    }
}
